package org.tis.tools.starter.operatelog.core;

/**
 * describe: 日志的ThreadLocal类
 *
 * @author zhaoch
 * @date 2018/8/24
 **/
public class LogThreadLocal {

    private static ThreadLocal<OperateLogBuilder> LOG_BUILDER_LOCAL = new ThreadLocal<>();

    /**
     * SET
     */
    public static void setLogBuilderLocal(OperateLogBuilder logBuilder){
        LOG_BUILDER_LOCAL.set(logBuilder);
    }

    /**
     * get
     */
    public static OperateLogBuilder getLogBuilderLocal(){
        return LOG_BUILDER_LOCAL.get();
    }

    /**
     * remove
     */
    public static void removceLogBuilderLocal(){
        LOG_BUILDER_LOCAL.remove();
    }


}
